package com.eurekaServer.config;

//import org.springframework.context.annotation.Configuration;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
//import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * 安全认证配置类
 */
//@Configuration
//@EnableWebSecurity
//public class WebSecurityConfig extends WebSecurityConfigurerAdapter {

//    @Override
//    public void configure(HttpSecurity httpSecurity) {
//        try {
//            super.configure(httpSecurity);
//            // 忽略eureka的所有请求
//            httpSecurity.csrf().ignoringAntMatchers("/eureka/**");
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//    }
//
//}
